window.addEventListener('DOMContentLoaded', function () {
  //获取阅读页日期
  var today = document.querySelector('.date');
  var date = new Date();
  var year = date.getFullYear();
  var month = date.getMonth() + 1;
  var dates = date.getDate();
  var arr = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
  var day = date.getDay();
  today.innerHTML = month + '月' + dates + '日' + ' ' + arr[day];
})